/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package controllers;

import models.Usuario;

/**
 *
 * @author alexwong
 */
public class Security extends Secure.Security {
    
    static boolean authenticate(String username, String password) {
        return Usuario.connect(username, password) != null;
    }
    
    static void onDisconnected() {
        Application.home();
    }
    
    static void onAuthenticated() {
        Application.chatroom();
    }
    
}
